$osVersion = [System.Environment]::OsVersion.ToString();

$found = $false;

if ($osVersion.Contains('5.2.3790') -AND $osVersion.Contains('Service Pack 2'))
{
    $found = $true;
}

return $found;